<!DOCTYPE HTML>
<html>

	<head>
		<meta charset="UTF-8">
		<title>LingPowerAI</title>
		<meta name="viewport" content="width=device-width,initial-scale=1,minimum-scale=1,maximum-scale=1,user-scalable=no" />
		<script type="text/javascript">
			document.write('<script src="../../js/fix.js?rd=?rd=' + Math.random() + '"><\/script>');
		</script>
		<script type="text/javascript">
			link();
		</script>
		<link rel="stylesheet" href="../../fonts/iconfont/iconfont.css">
		<script src="../../js/app/H5plus.js"></script>
		<style type="text/css">
			html,
			body {
				background-color: white;
			}

			.mui-content-padded {
				margin: 0px;
				box-shadow: none;
				padding: 0rem;

			}

			.mui-content .point_box {
				padding: 0px 0.1rem;
				/* position: absolute; */
				box-sizing: border-box;
				border: 1px solid #eee;
				width: 90%;
				margin-left: 5%;
				margin-top: 0.1rem;
				border-radius: 5px;
				background: #fafafa;
				/* box-shadow: 0px 0px 0.15rem -0.05rem #47bafe; */
			}

			#telImp,
			#wxImp {
				padding: 0.13rem;
				font-size: 0.2rem;
			}

			.point_box p {
				text-align: left;
				font-size: 0.15rem;
				margin-bottom: 0.05rem;
				line-height: 0.24rem;
			}

			.actionButton {
				margin: 0.1rem auto;
				margin-bottom: 0.15rem;
				line-height: 0.22rem;
			}
		</style>
	</head>

	<body style="display: none;">
		<header class="mui-bar mui-bar-nav">
			<h1 class="mui-title">客户</h1>
			<a class="mui-icon mui-icon mui-icon-help mui-pull-right " onclick="showSide()"></a>
		</header>

		<div class="mui-content" style="padding-top:60px;background-color: #FFFFFF;">

			<div class="mui-content-padded box" style="text-align: center;">
				<div>
					<img src="../../images/customer/ch.png" style="width : 1.3rem" />
				</div>
				<div style="margin: 0.05rem 0px;">
					<a style="color: #47BAFE;font-size: 0.17rem;">还没有添加客户信息，快去诊断吧</a>
				</div>
				<button id="telImp" class="mui-btn mui-btn-block mui-btn-primary actionButton">
					<span class="iconfont " style="font-size: 0.23rem !important;">&#xe635;</span>
					潜在客户诊断
				</button>
			<div class="point_box">
							 <div style="display: flex;align-items: center;margin-top: 0.07rem;margin-bottom: 0.05rem;">
								<span style="color: #47BAFE;font-size: 0.16rem;"><span class="mui-icon mui-icon-info" style="font-size: 0.23rem;">&nbsp;</span>诊断说明</span>
							</div>
							 <p>
								 1、灵豹将对您的手机好友及微信好友进行诊断，识别高潜力客户。<span style="color: #47BAFE;">相关数据仅在为您提供销售决策时使用，不会对第三方泄漏。</span>
			
							 </p>
							 <p>
								 2、诊断过程中需要操作您的手机，请您按照提示<span style="color: #47BAFE;">开启诊断服务，并在诊断过程中暂时不要操作手机</span>
							 </p>
							  <p>
							 	3、诊断完成后，灵豹将自动测算客户潜力分数，并生成行动推荐卡片<span style="color: #47BAFE;">（预计等待5~10分钟）</span>
							 </p>
			</div>
							<div class="point_box">
								<div style="display: flex;align-items: center;margin-top: 0.07rem;margin-bottom: 0.05rem;">
									<span style="color: #47BAFE;font-size: 0.16rem;"><span  class="mui-icon mui-icon-help" style="font-size: 0.22rem;">&nbsp;</span>使用帮助</span>
								</div>
								<p>
								1、如果微信无法正常诊断，请先清理后台应用，再重启灵豹APP
								</p>
								<p style="width:100%;word-break:break-all;word-wrap:break-word">2、使用过程中如有任何问题，请<a href="tel:17521351775" style="color: #47BAFE;">联系客服</a></p>
							</div>
			</div>
		</div>
		<script type="text/javascript">
			script();
		</script>

		<script type="text/javascript">
			mui.init();
			var ws = null,
				wc = null;
			mui.plusReady(function() {
			
				ws = plus.webview.currentWebview();
				// 用户点击后
				ws.addEventListener('maskClick', function() {
					wc.close('auto');
				}, false);
				//获取操作按钮对象
				var telImpBotton = document.getElementById("telImp");
				var wxImpButton = document.getElementById("wxImp");

				storage.init();
				storageUser = kidstorageuser.getInstance();
				//绑定[诊断手机联系人潜力]事件
				telImpBotton.addEventListener("tap", function() {
					localStorage.removeItem('customerData');
					let customerPage = plus.webview.getWebviewById("customer/customer.html");;
					mui.fire(customerPage, 'refreshPage', {});
					//openNew("addressbook.html");

					var REQUESTCODE = 1000;
					main = plus.android.runtimeMainActivity();
					var Intent = plus.android.importClass('android.content.Intent');
					var target = plus.android.importClass('com.linkpower.wechathelper.WechatRdActivity');
					var intent = new Intent(main, target.class);
					intent.putExtra("salesId", storageUser.UId);

					main.startActivityForResult(intent, REQUESTCODE);
				});

				var is_showSide = localStorage.getItem("is_showSide");
				if (is_showSide != "yes") {
					setTimeout(function(){
						showSide();//打开帮助
						localStorage.setItem("is_showSide","yes");
					},500);
				}
			});

			function showSide() {
				// 防止快速点击可能导致多次创建
				if (wc) {
					return;
				}
				// 开启遮罩
				ws.setStyle({
					mask: 'rgba(0,0,0,0.5)'
				});
				// 创建侧滑页面
				wc = createWithoutTitle('import_mask_side.html', {
					top: '0%',
					width: '100%',
					height: '68%',
					popGesture: 'none',
					titleNView: false
				});
				// 侧滑页面关闭后关闭遮罩
				wc.addEventListener('close', function() {
					ws.setStyle({
						mask: 'none'
					});
					wc = null;
				}, false);
				// 侧滑页面加载后显示（避免白屏）
				wc.addEventListener('loaded', function() {
					wc.show('slide-in-top');
				}, false);
			}
		</script>
	</body>

</html>
